package com.yangtao.prototype.system.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import com.yangtao.framework.hibernate.BaseEntity;

/**
 * 流水号设定
 * 
 * @author 杨涛
 * 
 */
@Entity
@Table(name = "sys_sn_setup", uniqueConstraints = @UniqueConstraint(columnNames = { "noteType" }))
public class SnSetup extends BaseEntity implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 流水号类型
	 */

	private String noteType;
	/**
	 * 类型名称
	 */
	private String noteName;

	/**
	 * 时间格式化字符串
	 */
	private String dateFmt;

	/**
	 * 单据前缀
	 */
	private String notePrefix;
	/**
	 * 增长步伐
	 */
	private Integer growStep;
	/**
	 * 流水号长度
	 */
	private Integer snLength;
	/**
	 * 左边补位字符
	 */
	@Column(length = 1)
	private String leftPadChar = "0";

	public SnSetup() {
		super();
	}

	/**
	 * @return the noteType
	 */
	public String getNoteType() {
		return noteType;
	}

	/**
	 * @param noteType
	 *            the noteType to set
	 */
	public void setNoteType(String noteType) {
		this.noteType = noteType;
	}

	/**
	 * @return the dateFmt
	 */
	public String getDateFmt() {
		return dateFmt;
	}

	/**
	 * @param dateFmt
	 *            the dateFmt to set
	 */
	public void setDateFmt(String dateFmt) {
		this.dateFmt = dateFmt;
	}

	/**
	 * @return the notePrefix
	 */
	public String getNotePrefix() {
		return notePrefix;
	}

	/**
	 * @param notePrefix
	 *            the notePrefix to set
	 */
	public void setNotePrefix(String notePrefix) {
		this.notePrefix = notePrefix;
	}

	/**
	 * @return the growStep
	 */
	public Integer getGrowStep() {
		return growStep;
	}

	/**
	 * @param growStep
	 *            the growStep to set
	 */
	public void setGrowStep(Integer growStep) {
		this.growStep = growStep;
	}

	/**
	 * @return the snLength
	 */
	public Integer getSnLength() {
		return snLength;
	}

	/**
	 * @param snLength
	 *            the snLength to set
	 */
	public void setSnLength(Integer snLength) {
		this.snLength = snLength;
	}

	/**
	 * @return the noteName
	 */
	public String getNoteName() {
		return noteName;
	}

	/**
	 * @param noteName
	 *            the noteName to set
	 */
	public void setNoteName(String noteName) {
		this.noteName = noteName;
	}

	/**
	 * @return the leftPadChar
	 */
	public String getLeftPadChar() {
		return leftPadChar;
	}

	/**
	 * @param leftPadChar
	 *            the leftPadChar to set
	 */
	public void setLeftPadChar(String leftPadChar) {
		this.leftPadChar = leftPadChar;
	}
}
